<html><head><title>JoystickButton</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">JoystickButton()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>JoystickButton</b></font>(#Joystick, Button)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the joystick button state. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Joystick</i></td>
<td width="90%"> 
The joystick to use. The first joystick index is 0. The number of available joysticks is returned by <a href="initjoystick.html">InitJoystick()</a>. 

</td></tr>
<tr><td><i>Button</i></td>
<td> 
The joystick button to query. The first button index is 1. 

<br>
Return zero if the specified button is not pressed, else it returns nonzero. 
Any number of buttons may be pressed at the same time. 

</td></tr>
</table>
</blockquote><p><b>Remarks</b></p><blockquote>

<a href="examinejoystick.html">ExamineJoystick()</a> has to be called before this function is used, to update the current joystick state. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="examinejoystick.html">ExamineJoystick()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=joystickaxisz.html>JoystickAxisZ()</a> - <a href="index.html">Joystick Index</a> - <a href="joystickname.html">JoystickName()</a> -><br><br></body></html>